package com.bruce.downloader.thread;

import com.bruce.downloader.print.SimpleDownloadProcessInfo;

/**
 * 下载进程信息线程
 * <br>CreateDate  2021/09/15 18:11:40
 *
 * @author luotuan
 * @version 1.0.0
 */
public class DownloadProcessInfoThread implements Runnable {
    private SimpleDownloadProcessInfo processInfo;

    public DownloadProcessInfoThread(SimpleDownloadProcessInfo processInfo) {
        this.processInfo = processInfo;
    }

    @Override
    public void run() {
        processInfo.calculate();
        processInfo.print();
    }
}
